﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Studio.Network.Utilities;

namespace Studio.Network.Glyph
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            HttpHelper http = new HttpHelper();
            http.ResponseEncoding = Encoding.UTF8;
            string host = "www.kaixin001.com";
            string response = http.AdvancedRequest(host, 80, textBoxRequest.Text);
            textBoxResponse.Text = response;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            HttpHelper http = new HttpHelper();
            http.ResponseEncoding = Encoding.UTF8;
            string host = "www.kaixin001.com";
            // string response = http.AdvancedRequest(host, 80, KnownHttpVerb.Get, comboBoxUrl.Text);

            string response = http.GET(comboBoxUrl.Text);

            textBoxResponse.Text = response;
        }
    }
}
